from typing import Optional
from sqlmodel import Field, SQLModel

class Admin_Role_Link(SQLModel, table=True):
    __tablename__ = "sys_admin_role_link" 
    admin_id: Optional[int] = Field(default=None, foreign_key="sys_admin.id", primary_key=True)
    role_id: Optional[int] = Field(default=None, foreign_key="sys_role.id", primary_key=True)

class Role_Menu_Link(SQLModel, table=True):
    __tablename__ = "sys_role_menu_link"  
    role_id: Optional[int] = Field(default=None, foreign_key="sys_role.id", primary_key=True)
    menu_id: Optional[int] = Field(default=None, foreign_key="sys_menu.id", primary_key=True)


